<script setup>
import {useRouter} from 'vue-router'
import Nav from "@/views/utils/Nav.vue"

const router = useRouter()
function goto(url){
  router.push(url)
}
</script>

<template>
  <div class="root">
    <!--头部-->
    <div class="header">
      <font-awesome-icon :icon="['far', 'bell']" style="color: white;width: 0.5rem;
  height: 0.5rem;margin: 20px"/>
    </div>
    <!--功能列表-->
    <div class="nav">
      <div class="item" @click="goto('/purchase')">
        <font-awesome-icon :icon="['fas', 'cart-plus']" class="fwi"/>
        <div>采购管理</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'truck']" class="fwi"/>
        <div>出货管理</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'warehouse']" class="fwi"/>
        <div>仓库管理</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'clipboard-check']" class="fwi"/>
        <div>客户订单</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'weight-hanging']" class="fwi"/>
        <div>新增采购单</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'file-lines']" class="fwi"/>
        <div>新增出货单</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'user-plus']" class="fwi"/>
        <div>新增客户</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'yen-sign']" class="fwi"/>
        <div>收款单</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'circle-check']" class="fwi"/>
        <div>付款单</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'truck-arrow-right']" class="fwi"/>
        <div>调拨单</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'tent']" class="fwi"/>
        <div>库存盘点</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'file-circle-question']" class="fwi"/>
        <div>待审核采购</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'tent-arrow-left-right']" class="fwi"/>
        <div>待审核出库</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'clipboard']" class="fwi"/>
        <div>报表</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'magnifying-glass']" class="fwi"/>
        <div>查询</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'user-gear']" class="fwi"/>
        <div>客户管理</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'shop']" class="fwi"/>
        <div>商品管理</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['far', 'calendar-check']" class="fwi"/>
        <div>签到</div>
      </div>
      <div class="item">
        <font-awesome-icon :icon="['fas', 'gear']" class="fwi"/>
        <div>设置</div>
      </div>

    </div>
    <Nav></Nav>
  </div>
</template>

<style scoped>
.root {
  width: 7.5rem;
}

.header {
  background-color: #15acfa;
  height: 4rem;
}

.nav {
  width: 7.2rem;
  background-color: #fff;
  margin: 0.1rem auto;
  display: flex;
  flex-wrap: wrap;
}

.item {
  width: 1.784rem;
  height: 1.784rem;
  border-bottom: #e1e1e1 solid 1px;
  border-right: #e1e1e1 solid 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

}

.fwi {
  color: #aaa;
  width: 0.6rem;
  height: 0.6rem;
}

.item div {
  margin-top: 0.1rem;
  color: #999;
  font-size: 0.32rem;
}
</style>
